// 引入 request 方法，假设 request 方法已经定义在某个工具文件中
import request from '/@/utils/request';
import { BaseProcInput, ExportProcByTMPInput, ExportProcInput } from '../models';
// 定义 API 路径枚举
enum Api {
    SysProcCommonDataSet = '/sysProc/commonDataSet',
    SysProcPocExport2 = '/sysProc/pocExport2',
    SysProcPocExport = '/sysProc/pocExport',
    SysProcProcTable = '/sysProc/procTable',
}

// 定义 API 方法
export const apiSysProcCommonDataSetPost = (body?: BaseProcInput) =>
    request({
        url: Api.SysProcCommonDataSet,
        method: 'post',
        data: body,
    });

export const apiSysProcPocExport2Post = (body?: ExportProcInput) =>
    request({
        url: Api.SysProcPocExport2,
        method: 'post',
        data: body,
    });

export const apiSysProcPocExportPost = (body?: ExportProcByTMPInput) =>
    request({
        url: Api.SysProcPocExport,
        method: 'post',
        data: body,
    });

export const apiSysProcProcTablePost = (body?: BaseProcInput) =>
    request({
        url: Api.SysProcProcTable,
        method: 'post',
        data: body,
    });